package cn.hss.object.dt;

/**几何图形
 * @author 作者：HeShaoShuai
 * @Email 邮箱：2569819541@qq.com
 * @Date 日期：2023/4/25 17:21
 * @Package 包名：cn.hss.object.dt
 * @Project 项目名：JavaSE
 * @Version 1.0
 */
public class GeometricObject {
	//属性
	private String color;
	private double weight;

	public GeometricObject() {
	}

	//全参构造器
	public GeometricObject(String color,double weight) {
		this.color = color;
		this.weight = weight;
	}
	//计算面积的方法
	public double findArea(){
		return 0.0;
	}
	//添加属性的getter方法和setter方法
	public String getColor() {
		return color;
	}

	public void setColor(final String color) {
		this.color = color;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeight(final double weight) {
		this.weight = weight;
	}
}
